package com.ikun.common.utils;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author xiaobobo
 * @title: ThreadPoolutils
 * @projectName iot-fy-2301-parent
 * @description: 线程池的工具类
 * @date 2023/10/8  15:25
 */
public class ThreadPoolUtils {

    private static final Integer  corePoolSize= 0;
    //申明了一个处理异常的线程池
    private  static  final ThreadPoolExecutor exceptionThreadPoolExecutor=new ThreadPoolExecutor(
            10,100,10, TimeUnit.SECONDS,new ArrayBlockingQueue<>(8192)
    );

    public static ThreadPoolExecutor getExceptionThreadPoolExecutor() {
        return exceptionThreadPoolExecutor;
    }
}
